<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>发布正式活动</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/external/jquery/jquery.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.js"></script>
	<script type="text/javascript" src="<%=basePath%>JS/jquery-validation-1.13.1/dist/jquery.validate.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-ui-1.11.2/jquery-ui.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>CSS/style.css">
	<link rel="stylesheet" type="text/css" href="<%=basePath%>JS/jquery-validation-1.13.1/demo/css/screen.css">


  </head>
  
  <body>
    <div id="head-search">
   	 		<i class="home-path"></i>
   	 		<span class="path-font">活动管理&nbsp;&nbsp;>>&nbsp;&nbsp;发布活动</span>
   	</div>
   	<div class="mainbody">
   		<div class="mainleft">
   		<form id="actForm" name="actForm" method="post" action="<%=basePath%>activitiesAction">
   		<div class="divrow"><span>活动主题：</span><input id="actTheme" name="actTheme"/></div>
   		<div class="divrow"><span>活动内容：</span><textarea id="actContent" name="actContent" rows="5" style="width:150px;"></textarea></div>
   		<div class="divrow"><span>活动日期：</span><input id="actDate" name="actDate" onclick="setDate(this,'yyyy-MM-dd HH:mm')"/></div>
   		<div class="divrow"><span>活动地点：</span><input id="actAddr" name="actAddr"/></div>
   		<div class="divrow"><span>发&nbsp;布&nbsp;人：</span><input id="contacter" name="contacter"/></div> 
   		   		<div class="divrow"><span>联系电话：</span><input id="phone" name="phone"/></div>
   		<div class="divrow"><button id="saveActBtn" class="wong-button-text-ui wong-button-blue" onclick="javascrit:$('#actForm').submit();">
   					<span class="wong-ui-icon wong-icon-save"></span>
   					<span >保存活动</span>
   				</button>
   		</div>	
   		</form>
   		</div>
   	</div>
  </body>
  <script type="text/javascript">
  	$(function(){
  		$("#actForm").validate({
			 	rules:{
			 		actTheme:"required",
			 		actContent:"required",
			 		actDate:"required",
			 		actAddr:"required",
			 		contacter:"required",
			 		phone:"required", 				 		
			 	},
			 	messages:{
			 		actTheme:"请输入活动主题",
			 		actContent:"请输入活动内容",
			 		actDate:"请输入活动日期",
			 		actAddr:"请输入活动地点",
			 		contacter:"请输入发布人",
			 		phone:"请输入联系方式", 		
			 		}	
			 });
  	});
  </script>
</html>
